<?php

namespace app\admin\model;

use think\Model;

/**
 * Reports
 */
class Reports extends Model
{
    // 表名
    protected $name = 'reports';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = true;
    protected $updateTime = false;


    public function onecate(): \think\model\relation\BelongsTo
    {
        return $this->belongsTo(\app\admin\model\Onecate::class, 'onecate_id', 'id');
    }

    public function twocate(): \think\model\relation\BelongsTo
    {
        return $this->belongsTo(\app\admin\model\Twocate::class, 'twocate_id', 'id');
    }
}